package com.shixi.shixitraining.shixitraining.ui.tabhome.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebView;
import android.widget.TextView;

import com.shixi.shixitraining.shixitraining.R;

public class WebActivity extends AppCompatActivity {

    private WebView mWeb;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_web);

        initView();
    }

    private void initView() {

       Bundle  bundle=new Bundle();

        String title = bundle.getString("title");
        String url = bundle.getString("url");
        TextView webTitle = (TextView) findViewById(R.id.web_title);
        mWeb = (WebView) findViewById(R.id.web);
        webTitle.setText(title.toString());
        webSite(url);
    }

    private void webSite(String url) {


    }


}
